The best tile based level design [on hold]

Posted by ReallyGoodPie on Game Development See other posts from Game Development or by ReallyGoodPie
Published on 2013-07-02T14:13:25Z Indexed on 2013/07/02 17:16 UTC
Read the original article Hit count: 358

Filed under:
|
|

My current method for tile based levels is to put everything in an array like the following:

grass = g
sky = s
house = h
...
"""
 ["SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"],
 ["SSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"],
 ["HHHHHHHHHHHHHHSSSSSSSSSSSSSSSS"],
 ["GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG"],
"""

I would then run a for loop to pass these on to a sprite class, bliting the images to the screen.

This is what I'd generally do in pygame when I am creating levels for a tile based RPG's. However, as I've gone on, I have added allot more sprites and image and it is seriously becoming more and more confusing to work with this and allot of mistakes are being made. What is the best alternative or other methods for doing this?

© Game Development or respective owner

Related posts about tiles

Related posts about level-design